<?php
class search_admin_http_web extends controller_prototype_class
{
    protected function ControllerInit ()
    {
        
    } 

    protected function PrimaryActionInit ($basicActionName)
    {  
          
    }  
        
    /**
		экшен по-умолчанию
	*/
    public function PrAction ()
    {
        
    }

    public function index_processPrAction()
    {
        if (!$this->Request()->isPost()) 
        {
        	MozgRoute::Get('http')->Redirect(array('module' => 'admin', 'ctrl' => 'service'));	
        } 
        
        $result = $this->Mod()->IndexAllContent();
        
        if ($result->GetStatus() == MR_STATUS_ERROR) 
        {
            $this->Libs()->messanger->createMessage($result->GetMessage(), MESSAGE_ERROR);
        }        
        else 
        {        
            $this->Libs()->messanger->createMessage($result->GetMessage());
        }
        
       	MozgRoute::Get('http')->Redirect(array('module' => 'admin', 'ctrl' => 'service'));                
    }    
}